Summary
The Linux kernel used by the affected egOS releases contains a use-after-free vulnerability in the IPv4 TCP connection-handling path. An unauthenticated remote attacker can send specially crafted IPv4 TCP packets containing IP options to a listening service and race retransmitted connection requests against connection establishment or teardown. Successful exploitation may disclose or corrupt kernel memory, crash the device, or potentially allow arbitrary code execution with kernel privileges.
Impact
Successful exploitation may expose adjacent kernel heap contents, cause out-of-bounds writes and kernel memory corruption, or crash the affected device and make it unavailable. Under suitable conditions, memory corruption may allow arbitrary code execution with kernel privileges and complete compromise of the device. Researchers have demonstrated unauthenticated remote code execution against systems with a Multipath TCP listener.
Affected Product(s)
| Model no. | Product name | Affected versions |
|---|---|---|
| EG400Mk2-D11001-000101, EG400Mk2-D11101-000101 | EG400 Mk2 | egOS <1.11.2 |
| EG503W, EG503L, EG503W_4GB, EG503L_4GB, EG503L-G | EG500 | egOS <1.11.2 |
| EG500Mk2-A11101-000101, EG500Mk2-A11001-000101, EG500Mk2-B11101-000101, EG500Mk2-B11001-000101, EG500Mk2-C11101-000101, EG500Mk2-C11001-000101, EG500Mk2-A12011-000101, EG500Mk2-A11001-000201, EG500Mk2-A21101-000101 | EG500 Mk2 | egOS <1.11.2 |
| EG602W, EG602L | EG600 | egOS <1.11.2 |
| EG603W Mk2, EG603L Mk2 | EG600 Mk2 | egOS <1.11.2 |
| EG802W, EG804W, EG802W_i7_512GB_DinRail, EG802W_i7_512GB_w/o DinRail, EG804W Pro | EG800 | egOS <1.11.2 |
Vulnerabilities
Expand / Collapse allIn the Linux kernel, the following vulnerability has been resolved:
ipv4: free inet_opt and ireq_opt after an RCU grace period
tcp_v4_syn_recv_sock() transfers ownership of ireq->ireq_opt to the
child socket (newinet->inet_opt) without copying it.
Another cpu can concurrently process a retransmitted SYN for the same
request socket, and send a SYNACK from tcp_check_req().
tcp_v4_send_synack() and inet_csk_route_req() read ireq->ireq_opt
under rcu_read_lock() only, and ip_build_and_send_pkt() and
ip_options_build() then read opt->optlen twice.
Note that the SYNACK timer itself is not an issue: it holds a
reference on its request socket, and inet_csk_reqsk_queue_drop()
calls timer_delete_sync() before the child can be freed.
Since commit 079096f103fa ("tcp/dccp: install syn_recv requests
into ehash table"), request sockets are processed without holding
the listener lock, so nothing prevents the child socket from being
freed while the SYNACK is still being built. TCP child sockets do
not have SOCK_RCU_FREE, and inet_sock_destruct() frees inet_opt
with a plain kfree(), leading to a use-after-free in
ip_options_build().
A similar issue exists with request socket migration
(net.ipv4.tcp_migrate_req=1, or a BPF_SK_REUSEPORT_SELECT_OR_MIGRATE
program). reqsk_timer_handler() clones the request socket with
inet_reqsk_clone(), so that the old request socket and its clone
share the same ireq_opt, then reqsk_migrate_reset() clears the
pointer in the old one. Another cpu holding a reference on the old
request socket can still be using these options (sending a SYNACK,
or creating a child in tcp_v4_syn_recv_sock()) when the clone is
freed, and tcp_v4_reqsk_destructor() also uses a plain kfree().
Readers already use RCU, and other paths replacing inet_opt
(do_ip_setsockopt(), cipso_v4_sock_setattr()...) already use
kfree_rcu(). Use kfree_rcu() in inet_sock_destruct() and
tcp_v4_reqsk_destructor() as well.
IPv6 is not affected by the first issue, because tcp_v6_syn_recv_sock()
duplicates the options. tcp_v6_reqsk_destructor() has the same
migration issue with ipv6_opt, which is only set by CALIPSO. This
will be addressed in a separate patch.
Mitigation
- Do not expose egOS management interfaces or other TCP services directly to the internet or other untrusted networks.
- Restrict inbound TCP access to trusted systems using network segmentation, firewall rules, or a VPN.
- At a trusted upstream firewall, block inbound IPv4 TCP packets that contain IPv4 header options. Test this measure against operational requirements before deployment because it may disrupt traffic that legitimately uses IPv4 options. Standard TCP options are not affected.
- Disable unused TCP services. If Multipath TCP is enabled, disable it where operationally possible. Disabling Multipath TCP reduces exposure to demonstrated remote code execution paths but does not fully mitigate the vulnerability.
- Monitor affected devices for unexpected restarts, kernel faults, and anomalous inbound TCP traffic containing IPv4 options.
Remediation
Update egOS on all affected products to version 1.11.2 or later.
Acknowledgments
Welotec GmbH thanks the following parties for their efforts:
- CERT@VDE for coordination (see https://certvde.com )
- Xinyang Ge from Anthropic for reporting the underlying Linux kernel vulnerability
Revision History
| Version | Date | Summary |
|---|---|---|
| 1.0.0 | 11/16/2026 12:00 | Initial release |